const express = require('express')
const router = express.Router()


const goodsService = require('../service/goodsService')


router.post('/addGoods', goodsService.addGoods)
router.get('/getGoods', goodsService.getGoods)
router.post('/updateGoods', goodsService.updateGoods)
router.post('/getMySellGoods', goodsService.getMySellGoods)
router.post('/getMyPayGoods', goodsService.getMyPayGoods)
router.post('/deleteGoods', goodsService.deleteGoods)
router.get('/getAllGoods', goodsService.getAllGoods)


module.exports = router
